﻿<?
include("../config/header.php");
?>
<script type='text/javascript'>
	document.title = 'base64在线加密 —— 在线工具';
</script>
<div class="container">
	<div class="panel panel-primary">
		<div class="panel-heading"><h3 class="panel-title">base64在线加密</h3></div>
	</div>
	<div class="form-group">
		<label>输入文本：</label>
		<textarea id="content" name="content" class="form-control" style="width:100%;height:250px;border:1px solid #c5e2f2;overflow:visible;" onfocus="if(jQuery(this).val()=='[要加密的内容放上面，要解密的内容放下面]'){jQuery(this).val('');}" onblur="if(jQuery(this).val()==''){jQuery(this).val('[要加密的内容放上面，要解密的内容放下面]');}" >[要加密的内容放上面，要解密的内容放下面]</textarea>
	</div>
	<div class="form-group" align="center">
		<button onclick="base64_encode();" class="button button-rounded button-flat-primary">BASE64加密↓</button>
		<button onclick="base64_decode();" class="button button-rounded button-flat-action">BASE64解密↑</button>
		<button onclick="jQuery('#content').val('');" class="button button-rounded button-flat-highlight">清空</button>
	</div>
	<div class="form-group">
		<label>结果：</label>
		<textarea id="result" name="result" class="form-control" style="width:100%;height:250px;border:1px solid #c5e2f2;overflow:visible;"></textarea>
	</div>
	<div class="form-group" align="center">
		<button onclick="jQuery('#result').val('');" class="button button-rounded button-flat-highlight">清空</button>
	</div>
</div>
<script type="text/javascript" src="<?php echo $url;?>content/js/core.js"></script>
<script type="text/javascript" src="<?php echo $url;?>content/js/base64.js"></script>
<?php
include("../config/footer.php");
?>